<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'main.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	 <link rel="stylesheet" type="text/css" href="jsTools/bootstrap-3.3.7-dist/css/bootstrap.min.css">
	<script type="text/javascript" src="jsTools/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
	
	<link rel="stylesheet" type="text/css" href="jsTools/jquery-easyui-1.5.1/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="jsTools/jquery-easyui-1.5.1/themes/icon.css">
	<script type="text/javascript" src="jsTools/jquery-easyui-1.5.1/jquery.min.js"></script>
	<script type="text/javascript" src="jsTools/jquery-easyui-1.5.1/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="jsTools/jquery-easyui-1.5.1/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>
  </head>
  
  <body>
  <div class="container-fixed">
  		<div class="row clearfix">
  		<div class="col-sm-12 col-sm-offset-5">
    		<ul class="list-unstyled list-inline">
    			<li class="myself"><a href="javascript:viod(0)" class="easyui-linkbutton" onclick="addTab('个人信息管理','section/myselfManage.jsp')">个人信息管理</a></li>
    			<li class="speck"><a href="javascript:viod(0)" class="easyui-linkbutton" onclick="addTab('通信录管理','section/addressListManage.jsp')">通信录管理</a></li>
    			<li class="day"><a href="javascript:viod(0)" class="easyui-linkbutton" onclick="addTab('日程安排管理','section/dayManage.jsp')">日程安排管理</a></li>
    			<li class="file"><a href="javascript:viod(0)" class="easyui-linkbutton" onclick="addTab('个人文件管理','section/fileManage.jsp')">个人文件管理</a></li>
    			<li ><a href="login!exit.action" class="easyui-linkbutton">退出主页面</a></li>
    			<li ><span><i>欢迎${user.userName}使用本系统</i></span></li>
    		</ul>
    	</div>
    	</div>
    	<div class="row">
    	<div id="sectionPage" class="col-sm-8 col-sm-offset-2 easyui-tabs">
    	
    	</div>
    </div>
    </div>
  </body>
  <script type="text/javascript">
  function addTab(title, url){
		if ($('#sectionPage').tabs('exists', title)){
			$('#sectionPage').tabs('select', title);
		} else {
			var content = '<iframe scrolling="auto" frameborder="0"  src="'+url+'" style="width:100%;height:100%;"></iframe>';
			$('#sectionPage').tabs('add',{
				title:title,
				content:content,
				closable:true,
			});
		};
	};
  </script>
</html>
